'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
	const { router, controller } = app
	const { urlSysm } = app.config.baseUrl
	const subRouter = router.namespace(urlSysm + '/artical')
	subRouter.get('/list', controller.artical.list)
	subRouter.get('/listAll', controller.artical.listAll)
	subRouter.get('/findLike', controller.artical.findLike)
	subRouter.post('/add', controller.artical.add)
	subRouter.post('/update', controller.artical.update)
	subRouter.post('/updateList', controller.artical.updateList)
	subRouter.post('/del', controller.artical.del)
	subRouter.get('/getArticelById/:id', controller.artical.getArticelById)
}
